package org.redmagic.service.utils;

public final class PropertyUtils {

	private PropertyUtils() {}
	
	public static String getNestedProperty(String input) {
		String nestedProperty = null;
		int startIndex = input.indexOf("$magic{");
		if (startIndex > -1) {
			int endIndex = input.indexOf("}", startIndex + 6);
			if (endIndex > -1) {
				nestedProperty = input.substring(startIndex + 7, endIndex);							
			}
		}
		
		return nestedProperty;
	}
}
